package com.indigon.parkStory.view.objects.text
{
	import com.indigon.parkStory.view.objects.ObjectView;
	
	import flash.display.MovieClip;
	import flash.geom.Point;

	public class FloatingText extends ObjectView
	{
		private static const TEXT_ID : String = "text";
		
		public static const POS_DIFF : Point = new Point(0.0, -50.0);
		
		public function FloatingText(graphic:MovieClip, frame:uint)
		{
			super(graphic, null, false);
			
			graphic[TEXT_ID].gotoAndStop(frame);
			graphic.addFrameScript(graphic.totalFrames - 1, uninit);
		}
	}
}